package com.traffic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;
import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/10/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
/**
 * 返回数据 User  UserInfo的集合
 */
public class RtUserData implements Serializable {
    private static final long serialVersionUID = 5326881750141925636L;

    private Long id;

    private Long role;

    private String account;

    private Integer status;

    private Integer type;

    private Long headImg;

    private String nickName;

    private Integer sex; // 0-man 1-woman

    private Date birthday;

    private String city;

    private String profile;

    private String phone;

    private Integer rank;

    private Integer driveAge;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;
}
